#ifndef __CAPPINSTANCE_H__
#define __CAPPINSTANCE_H__

#include <WinSock2.h>
#include <Windows.h>
#include "CTabCtrl.h"

class CAppInstance {
public:
							CAppInstance(HINSTANCE hInstance, int nCmdShow)	;

	BOOL					Create(void)									;

	int						Run(void)										;

	HWND					GetToolbarHandle(void)							;

	HINSTANCE				GetInstanceHandle(void)							;

	static BOOL CALLBACK	MainDlgProc(
			HWND	hwnd		,
			UINT	uMsg		,
			WPARAM	wParam		,
			LPARAM	lParam
			)																;

							~CAppInstance()									;
private:
	CTabCtrl*		m_pTabCtrl		;

protected:
	HINSTANCE		m_hInstance		;
	int				m_nCmdShow		;
	HWND			m_hWnd			;
	HWND			m_hToolBar		;
	HIMAGELIST		m_hToolBarImages;
} ;

#endif
